/** 该文件仅存放演员模块相关的接口API */
import myaxios from "../MyAxios";
// 引入路径前缀
import BASEURL from "../BaseUrl";
const { MACURL } = BASEURL;

const adminApi = {
  /**
   * 登录接口
   * @param {Object}} params  {username,password}
   */
  login(params) {
    return myaxios.post(MACURL + "/user/login", params);
  },

  queryAll() {
    return myaxios.get(MACURL + "/admin");
  },
  add() {
    return myaxios.post(MACURL + "/admin/add");
  },
  delete(params) {
    return myaxios.post(MACURL + "/admin/del");
  },
};

export default adminApi;
